import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm'

@Entity({name: "cut_record"})
export class CutRecordEntity {
  @PrimaryGeneratedColumn()
  id: number

  @Column('int', {nullable: true})
  uid: number

  @Column('int', {nullable: true})
  tid: number

  @Column('int', {default: 0, comment: `0: 未开始 1: 进行中 2 成功 3 失败`})
  status: number

  @CreateDateColumn({type: 'datetime'})
  createAt: Date

  @UpdateDateColumn({type: 'datetime'})
  updateAt: Date
}